package com.serookie.service;

import com.serookie.dto.OrderGoods;
import com.serookie.entity.Goods;
import com.serookie.entity.Order;

import java.util.List;

/**
 * @author kevintam
 * @version 1.0
 * @date 2021/5/31 17:52
 */
public interface OrderService{
//    查询所有的订单
    public List<Order> all();
    //添加订单
    public Boolean addOrder(Order order);
    //根据编号模糊查询订单
    public Order OrderByNumber(String orderNumber);
    public List<Order> getOrder(String orderNumber);
    //根据订单userId模糊查询订单
    public List<Order> OrderByUserId(Integer userId);
    //根据订单状态查询订单
    public List<Order> getPayStatus(Integer payStatus);
    //根据商品id删除订单
    public Boolean deleteOrder(Integer orderId);
    //修改商品
    public Boolean updateOrder(Order order);
    public Integer goodsCount();
}
